package com.stormrage.entity.edu;

import java.io.Serializable;

/**
 * @author www.stormragetech.com
 * @date 2016年4月2日
 * @version 1.0.0
 */
public class EduMajor implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -2526776778308044452L;

	// ------------------------------- Fields -------------------------------

	private Integer id; // 编号

	private String major; // 名称

	private Integer module; // 模块是否唯一

	private Integer ness; // 必须课程数量

	private String detail;

	// ------------------------------- Fields -------------------------------

	public EduMajor() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public Integer getModule() {
		return module;
	}

	public void setModule(Integer module) {
		this.module = module;
	}

	public Integer getNess() {
		return ness;
	}

	public void setNess(Integer ness) {
		this.ness = ness;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	// ------------------------------- Fields -------------------------------

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " major - " + major + " detail - " + detail + " module - " + module;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		EduMajor entity = (EduMajor) o;

		if (id != null ? !id.equals(entity.id) : entity.id != null)
			return false;

		return true;
	}

	@Override
	public int hashCode() {
		return id != null ? id.hashCode() : 0;
	}

}
